x86/mm: fix the non-debug build
authorTim Deegan <Tim.Deegan@citrix.com>
Thu, 30 Jun 2011 10:01:04 +0000 (11:01 +0100)
committerTim Deegan <Tim.Deegan@citrix.com>
Thu, 30 Jun 2011 10:01:04 +0000 (11:01 +0100)
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/mm/p2m.c

index 39acd60107555177e9533628e85c49644aa5227a..8ac4c4a6b284869894f970038617bfb5ea91bcbb 100644 (file)
@@ -1102,9 +1102,7 @@ p2m_flush_table(struct p2m_domain *p2m)
 void
 p2m_flush(struct vcpu *v, struct p2m_domain *p2m)
 {
-    struct domain *d = p2m->domain;
-
-    ASSERT(v->domain == d);
+    ASSERT(v->domain == p2m->domain);
     vcpu_nestedhvm(v).nv_p2m = NULL;
     p2m_flush_table(p2m);
     hvm_asid_flush_vcpu(v);